package com.example.books.data;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

public class Book extends LitePalSupport {
    private Long id;
    @Column(unique = true)
    private String bookpath;
    @Column(defaultValue = "book.png")
    private String bookPicture;
    @Column(defaultValue = "未知")
    private String bookAuthor;
    private String boolkName;
    @Column(defaultValue = "0.00")
    private double bookschedule;

    public Book() {
    }

    public Book(Long id, String bookpath, String bookPicture, String bookAuthor, String boolkName, float bookschedule) {
        this.id = id;
        this.bookPicture = bookPicture;
        this.bookAuthor = bookAuthor;
        this.boolkName = boolkName;
        this.bookschedule = bookschedule;
    }

    public String getBookpath() {
        return bookpath;
    }

    public void setBookpath(String bookpath) {
        this.bookpath = bookpath;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBookPicture() {
        return bookPicture;
    }

    public void setBookPicture(String bookPicture) {
        this.bookPicture = bookPicture;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getBoolkName() {
        return boolkName;
    }

    public void setBoolkName(String boolkName) {
        this.boolkName = boolkName;
    }

    public double getBookschedule() {
        return bookschedule;
    }

    public void setBookschedule(double bookschedule) {
        this.bookschedule = bookschedule;
    }
}
